package com.chenxingnet.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import com.chenxingnet.dto.Drivers;

public interface DriversService {
	/**
	 * 新增驾驶员
	 * @param drivers
	 * @return
	 */
	int addDrivers(Drivers drivers);
	/**
	 * 删除驾驶员信息
	 * @param dId
	 * @return
	 */
	int deleteDrivers(Integer dId);
	/**
	 * 分页查询全部驾驶员信息
	 * @return
	 */
	void selectAllByCount(HttpServletRequest request, Model model);
	/**
	 * 移动端分页查询
	 * @param request
	 */
	void mobSelectAllByCount(HttpServletRequest request);
	/**
	 * 根据id查询驾驶员信息
	 */
	Drivers selectById(Integer dId);
	/**
	 * 修改驾驶员信息
	 * @param drivers
	 * @return
	 */
	int updateDrivers(Drivers drivers);
	/**
	 * 图片处理
	 * @param did
	 * @param type
	 * @param index
	 * @return
	 */
	String  saveImg(MultipartFile m,String type,int index);
	List<Drivers> selectAll();


}
